<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">

	<h:head><title>Login</title></h:head>
	
	<h:body>
	
	<h:messages />
	<h:form>
	<h:outputLabel value="Usuário : "  for="campo-usuario"/>
	<h:inputText value="#{usuarioMB.usuario.username}" id="campo-usuario" /> 
	<h:outputLabel value="Senha : " for="campo-senha" />
	<h:inputSecret value="#{usuarioMB.usuario.senha}" id="campo-senha"/>
	
	<h:commandButton value="Entrar" action="#{usuarioMB.autenticar}" />
	</h:form>
	</h:body>
</html>